<template>
  <div class="dashboard-container">
    <!-- 头部 -->
    <div class="dashboard-text">
      <el-card class="head">
        <div class="img"><img :src="avatar" alt="" /></div>
        <div class="text">
          <h3>早安，{{ name }}，祝你开心每一天</h3>
          <p>{{ name }}|{{ companyName }}-{{ departmentName }}</p>
        </div>
      </el-card>

      <!-- 内容 -->

      <el-row class="content">
        <el-col>
          <el-row>
            <el-col :span="12"></el-col>
            <el-col :span="12"></el-col>
          </el-row>
        </el-col>
        <e-col>
          <el-row> </el-row>
        </e-col>
      </el-row>
    </div>
  </div>
</template>

<script>
import { mapGetters } from "vuex";

export default {
  name: "Dashboard",
  computed: {
    ...mapGetters(["name", "companyName", "departmentName", "avatar"])
  },
  data() {
    return {
      value: new Date()
    };
  }
};
</script>

<style lang="scss" scoped>
.dashboard-text {
  padding: 20px;
  ::v-deep {
    .head {
      .el-card__body {
        width: 100%;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        .img {
          width: 120px;
          height: 120px;
          border-radius: 50%;
          overflow: hidden;
          margin-right: 10px;
          img {
            width: 100%;
            vertical-align: middle;
          }
        }
        .text {
          h3 {
            font-weight: 400;
            font-size: 30px;
          }
          p {
            font-size: 24px;
            color: #8b8e8d;
          }
        }
      }
    }
    .el-aside {
      flex: 1;
      background-color: #d3dce6;
      color: #333;
      text-align: center;
      line-height: 200px;
    }

    .el-main {
      background-color: #e9eef3;
      color: #333;
      text-align: center;
      line-height: 160px;
    }
  }

  .content {
    display: flex;

    .side {
      flex: 1;
      display: flex;
      flex-direction: column;
    }
    .main {
      flex: 1;
      display: flex;
      flex-direction: column;
    }
  }
}
</style>
